package com.brush.app.domain.resp.question;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * 功能描述
 *
 * @author tonneyyy
 */
@Getter
@Setter
@ApiModel(value = "QuestionResp",description = "问题返回参数")
public class QuestionResp {

    @ApiModelProperty(value = "id")
    private Integer id;

    /**
     * 科目,app_subject表关联
     */
    @ApiModelProperty(value = "所属学科")
    private Long subjectId;

    @ApiModelProperty(value = "所属学科名称")
    private String subjectName;

    /**
     * 课程id,app_course表关联
     */
    @ApiModelProperty(value = "所属课程")
    private Long courseId;

    @ApiModelProperty(value = "所属课程名称")
    private String courseName;

    /**
     * 试题类型 sys_question_type
     */
    @ApiModelProperty(value = "试题类型")
    private String questionType;


    /**
     * 试题难度 sys_difficulty
     */
    @ApiModelProperty(value = "试题难度")
    private String difficult;

    @ApiModelProperty(value = "正确答案")
    private String correct;

    /**
     * 试题内容
     */
    @ApiModelProperty(value = "试题内容")
    private String subject;

    /**
     * 浏览次数
     */
    @ApiModelProperty(value = "浏览次数")
    private Integer viewsNum;

    /**
     * 会员等级
     */
    @ApiModelProperty(value = "会员等级")
    private Integer vipLevel;


    /**
     * 错误次数
     */
    @ApiModelProperty(value = "错误次数")
    private Integer errorsNum;

    /**
     * 点赞次数
     */
    @ApiModelProperty(value = "点赞次数")
    private Integer likeNum;



    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createBy;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 状态（0正常 1停用）
     */
    @ApiModelProperty(value = "状态")
    private String status;

    @ApiModelProperty(value = "选择题的选项", hidden = true)
    private String chooseStr;
}
